/**
 * 封装localStorage的操作
 */
export const localStorage = {
  set(key: string, value: any) {
    window.localStorage.setItem(key, value);
  },

  get: function (key: string) {
    return window.localStorage.getItem(key);
  },

  remove: (key: string) => {
    window.localStorage.removeItem(key);
  },

  clear() {
    window.localStorage.clear();
  },
};
